package com.whmnx.chitchat.adapter;

import android.content.Context;
import android.text.TextUtils;
import android.view.View;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.recyclerview.widget.DefaultItemAnimator;
import androidx.recyclerview.widget.RecyclerView;

import com.classic.adapter.BaseAdapterHelper;
import com.classic.adapter.CommonRecyclerAdapter;
import com.whmnx.chitchat.R;
import com.whmnx.chitchat.bean.DynaminBean;
import com.whmnx.chitchat.constants.Constants;
import com.whmnx.chitchat.http.CallBack;
import com.whmnx.chitchat.http.HttpClient;
import com.whmnx.chitchat.utils.ImageUtil;
import com.whmnx.chitchat.utils.SPUtil;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * author : huang
 * date   : 2020/7/27 0027 17:31
 * version: 1.0
 * @author Administrator
 */
public class LikeAdapter extends CommonRecyclerAdapter<DynaminBean.ForumListBean.LikesBean> {
    private Context context;
    private List<Boolean> alreadyLikeList = new ArrayList<>();
    private ImageView view;


    public LikeAdapter(Context context) {
        super(context, R.layout.item_list_like);
        this.context = context;
    }


    @Override
    public void onUpdate(BaseAdapterHelper helper, DynaminBean.ForumListBean.LikesBean item, int position) {
        helper.setText(R.id.tv_name, (String) item.UserInfo_NickName);
        helper.setVisible(R.id.tv_doc, View.GONE);
    }
}
